package com.xindacloud.sms.adapter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

@Data
@Builder
@TableName
public class SmsUser implements Serializable {

    private static final long serialVersionUID = 1571276867664L;


    /**
     * 主键
     * 序列号，自增
     * isNullAble:0
     */
    @TableId(type = IdType.AUTO)
    private Integer userId;

    /**
     * 用户名
     * isNullAble:1
     */
    private String username;

    /**
     * 登录密码,MD5加密
     * isNullAble:0
     */
    private String password;

    /**
     * 账号名
     * isNullAble:1
     */
    private String accountName;

    /**
     * 昵称
     * isNullAble:1
     */
    private String nickname;

    /**
     * first_name
     * isNullAble:1
     */
    private String firstName;

    /**
     * last_name
     * isNullAble:1
     */
    private String lastName;

    /**
     * 注册电子邮箱
     * isNullAble:1
     */
    private String email;

    /**
     * 性别0女，1男
     * isNullAble:1
     */
    private Integer sex;

    /**
     * 手机号码
     * isNullAble:1
     */
    private String mobile;

    /**
     * 生日
     * isNullAble:1
     */
    private String birthday;

    /**
     * 个人网页
     * isNullAble:1
     */
    private String personerWebsite;

    /**
     * 个性签名
     * isNullAble:1
     */
    private String sign;

    /**
     * 注册时间
     * isNullAble:1,defaultVal:CURRENT_TIMESTAMP
     */
    private java.time.LocalDateTime registerTime;

    /**
     * 是否禁用,true为禁用
     * isNullAble:1,defaultVal:1
     */
    private Boolean status;

    /**
     * 最后登录时间
     * isNullAble:1,defaultVal:CURRENT_TIMESTAMP
     */
    private java.time.LocalDateTime lastLoginTime;

    /**
     * 账户余额
     * isNullAble:1
     */
    private java.math.BigDecimal balance;

    /**
     * 地址
     * isNullAble:1
     */
    private String address;

    /**
     * 城市
     * isNullAble:1
     */
    private String city;

    /**
     * 邮编
     * isNullAble:1
     */
    private Integer postCode;

    /**
     * 国家
     * isNullAble:1
     */
    private String country;

    /**
     * 时区
     * isNullAble:1
     */
    private String timeZone;

    /**
     * 语言
     * isNullAble:1
     */
    private String language;

    /**
     * 显示货币
     * isNullAble:1
     */
    private String displayCurrency;

    /**
     * 上级用户
     * isNullAble:1
     */
    private Integer parentUserId;

    /**
     * 申请状态0已申请，1申请中
     * isNullAble:1
     */
    private Integer applyStatus;

    /**
     * 申请时间
     * isNullAble:1,defaultVal:CURRENT_TIMESTAMP
     */
    private java.time.LocalDateTime applyTime;

    private String defaultSender;

}
